fix: get confirmedTimeStamp#525
Conversation
There was a problem hiding this comment.
Pull request overview
This PR fixes the display of time estimates for pending transfers in the Activity List and Activity Details screens. The changes address issue #521 by properly calculating confirmation time estimates based on fee rates instead of using placeholder values.
Key Changes:
- Added a new
timestamp()extension function to properly handle confirmed timestamps for on-chain transactions - Implemented
getFeeDescription()method to calculate time estimates based on fee rates - Updated Activity List and Activity Details to display proper duration estimates for pending transfers
Reviewed changes
Copilot reviewed 4 out of 4 changed files in this pull request and generated 4 comments.
| File | Description |
|---|---|
| ActivityRow.kt | Updated to use fee rate information from blocktank for calculating and displaying transfer duration estimates in activity list items |
| ActivityDetailScreen.kt | Modified to pass fee rates and display accurate pending transfer duration in status section |
| FeeRate.kt | Added new getFeeDescription() composable function to determine time estimates based on fee rate tiers |
| Activities.kt | Added timestamp() extension function to properly retrieve confirmed or creation timestamps for activities |
Code ReviewOverall AssessmentGood implementation that addresses the issue requirements for dynamic time estimates. The code follows most project conventions and patterns. There are a few areas that need attention. ✅ Strengths
|
Closes #521
ROADMAP
Description
Preview
transfer-from-spending.webm
transfer-from-savings.webm
QA Notes
Tested send on-chain with different speeds, but all have the same fee, so it is always displayed with same time